//
//  DMWithdrawDepositBankVC.m
//  DistributionMall
//
//  Created by JHnoplan on 2018/10/17.
//  Copyright © 2018年 JHnoplan. All rights reserved.
//

#import "DMWithdrawDepositBankVC.h"
#import "DMWithdrawDepositBankCell.h"

@interface DMWithdrawDepositBankVC ()<UITableViewDelegate,UITableViewDataSource>

@property (weak, nonatomic) IBOutlet UITableView *tableView;


@end

@implementation DMWithdrawDepositBankVC

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self startInit];
}

-(void)startInit {
    self.navigationItem.title = @"银行卡提现";
    self.view.backgroundColor = DMDefaultColor;
    _tableView.delegate = self;
    _tableView.dataSource = self;
    //注册cell
    [self.tableView registerNib:[UINib nibWithNibName:@"DMWithdrawDepositBankCell" bundle:nil] forCellReuseIdentifier:@"DMWithdrawDepositBankCell"];
}
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    return 1;
}
-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
    return 600;
}
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    DMWithdrawDepositBankCell *cell = [tableView dequeueReusableCellWithIdentifier:@"DMWithdrawDepositBankCell" forIndexPath:indexPath];
    if (cell == nil) {
        cell = [[NSBundle mainBundle]loadNibNamed:@"DMWithdrawDepositBankCell" owner:self options:nil].firstObject;
    }
    cell.selectionStyle = UITableViewCellSelectionStyleNone;
    [cell setClickButton:^(NSInteger tag) {
        if (tag == 1) {
            //全部提现
        }else if (tag == 2) {
            //确认提现
        }
    }];
    return cell;
}

@end
